package makai.geom;

import java.awt.Shape;
import java.awt.geom.Area;
import java.io.Serializable;

/**
 * A wrapper for Area to make them easier for shorthand coding.
 * 
 * @author Krechevskoy
 * @version 1.0
 */
public class ComplexArea extends Area implements Serializable{

    public ComplexArea() {
        super();
    }
    
    public ComplexArea(Shape shape) {
        super(shape);
    }
    
    public void add(Shape shape) {
        super.add(new Area(shape));
    }

    public void exclusiveOr(Shape shape) {
        super.exclusiveOr(new Area(shape));
    }

    public void intersect(Shape shape) {
        super.intersect(new Area(shape));
    }

    public void subtract(Shape shape) {
        super.subtract(new Area(shape));
    }
    
}
